package com.abhinav.junit;

import static org.junit.Assert.*;

import java.util.Arrays;
import java.util.Collection;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

@RunWith(Parameterized.class)
public class Junit4 {
	
	int number;
	
	public Junit4(int number) {
		this.number = number;
	}

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		fail("Not yet implemented");
	}
	
	@Parameters
	public static Collection<Object[]> data(){
		Object[][] data = new Object[][]{{1},{2},{3},{4}};
		return Arrays.asList(data);
	}
	
	@Test
	public void pushTest(){
		System.out.println("Parameterized Number is : " + number);
	}

}
